package com.xtkj.superclub_entity.entity.friendsCircle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 项目名称：superclub
 * 类 名 称：UserLike
 * 类 描 述：用户点赞表
 * 创建时间：2020/1/3 13:35
 * 创 建 人：xiezhiyan
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain=true)
@ToString
@TableName(value = "f_userlike")
@ApiModel(value = "朋友圈点赞")
public class UserLike {

    @TableId(value = "share_id",type = IdType.INPUT)
    @ApiModelProperty(name = "shareId",value = "被点赞的分享的id")
    private String shareId;//被点赞的分享的id


    @ApiModelProperty(name = "likesUserId",value = "点赞的用户的id")
    private String likesUserId;//点赞的用户的id

    @ApiModelProperty(name = "status",value = "点赞的状态")
    private Integer status = LikedStatusEnum.UNLIKE.getCode();   //点赞的状态.默认未点赞

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createdtm",value = "创建时间")
    private Date createdtm;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "updatedtm",value = "修改时间")
    private Date updatedtm;//修改时间
}